<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2023/10/6
  Time: 10:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>application作用域</title>
</head>
<body>
    <%
        // application: 代表整个应用程序有效，只要程序还运行着，就可以随时访问，与浏览器无关，与转发与重写向无关！
        application.setAttribute("book","红楼梦");
        response.sendRedirect("/listbooks.jsp");
    %>
</body>
</html>
